/*******************************************************************
 *
 * Copyright (C), 2021-2022, LS, All rights reserved.
 *
 * Author      : 
 * Create Time : 2022-1-10
 * Version     : v0.1
 * Description : 
 *******************************************************************/

#ifndef _LS_BLE_TYPE_H_
#define _LS_BLE_TYPE_H_

#include "stdint.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
    LS_BLE_SUCCESS  = 0x00,
    LS_BLE_ERR_INTERNAL,
    LS_BLE_ERR_NOT_FOUND,
    LS_BLE_ERR_NO_EVENT,
    LS_BLE_ERR_NO_MEM,
    LS_BLE_ERR_INVALID_ADDR,     // Invalid pointer supplied
    LS_BLE_ERR_INVALID_PARAM,    // Invalid parameter(s) supplied.
    LS_BLE_ERR_INVALID_STATE,    // Invalid state to perform operation.
    LS_BLE_ERR_INVALID_LENGTH,
    LS_BLE_ERR_DATA_SIZE,
    LS_BLE_ERR_TIMEOUT,
    LS_BLE_ERR_BUSY,
    LS_BLE_ERR_COMMON,
    LS_BLE_ERR_RESOURCES,
    LS_BLE_ERR_CONN_INVALID,
    LS_BLE_ERR_IND_FAIL,
    LS_BLE_ERR_NTF_FAIL,
    LS_BLE_ERR_UNKNOWN,          // other ble sdk errors
} ls_ble_status_t;


#ifdef __cplusplus
}
#endif

#endif //_LS_BLE_TYPE_H_
